package com.app.TCES.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.app.TCES.domain.Test;

@Mapper
public interface A_e1Mapper {

	// 获取教师同行评价内容信息
	@Select("select * from test where testType=1")
	public List<Test> selectEvaluations1();

	// 获取学生评价内容信息
	@Select("select * from test where testType=2")
	public List<Test> selectEvaluations2();

	// 更新评价表
	@Update("update test set testContent=#{testContent} where testId = #{testId}")
	public void UpdataEva(@Param("testId") int qId, @Param("testContent") String testContent);

}
